import 'package:flutter/material.dart';

class PPUnknownPage extends StatefulWidget {

    PPUnknownPage({ Key key, this.routeName }): super(key: key);

    final String routeName;

    _PPUnknownPageState createState() => _PPUnknownPageState();
}

class _PPUnknownPageState extends State<PPUnknownPage> {

    @override
    Widget build(BuildContext context) {
        return Scaffold(
            appBar: AppBar(title: Text('路由错误')),
            body: Container(
                color: Colors.white,
                padding: EdgeInsets.fromLTRB(15, 30, 15, 0),
                alignment: Alignment.center,
                child: Column(
                    children: [
                        Container(
                            margin: EdgeInsets.only(top: 20),
                            width: 120, 
                            height: 120,
                            child: Image.asset("resource/images/unknown_route_icon.png", fit: BoxFit.fitWidth),
                        ),
                        Container(
                            margin: EdgeInsets.only(top: 20),
                            child: Text('error route path : ' + widget.routeName),
                        )
                    ],
                ),
            ),
        );
    }
}
